package com.llamarun;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.View;

public class Brick extends Projectible{
	private int i =0;
	private Bitmap bigBrick = null;
	private Bitmap smallBrick = null;
			
	public Brick (View view)
	{
		smallBrick = BitmapFactory.decodeResource(view.getResources(), R.drawable.brick2);
		bigBrick = BitmapFactory.decodeResource(view.getResources(),R.drawable.brick);
		this.setBitmap(smallBrick);
	}
	
	public void fly()
	{
		this.setX(this.getX()+speed);
		this.setY(this.getY()+i*speed);
		i++;
	}
	
	public void improve()
	{
		this.setBitmap(bigBrick);
	}
	
	public void unimprove(){
	  this.setBitmap(smallBrick);	
	}
}
